﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace GraphicCreations.Models
{
    public class AccountModel
    {
        public int UserID { get; set; }

        [Required(ErrorMessage="Required!")]
        public string Name { get; set; }

        [Required(ErrorMessage = "Required!")]
        public string Username { get; set; }

        [Required(ErrorMessage = "Required!")]
        public string EmailID { get; set; }

        [Required(ErrorMessage = "Required!")]
        public string Password { get; set; }

        public string Role { get; set; }
    }

    public class LoginModel
    {
        [Required(ErrorMessage = "Required!")]
        public string Username { get; set; }

        [Required(ErrorMessage = "Required!")]
        public string Password { get; set; }
    }
}